package com.jumi.microservice.domain;

import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 运费模板表
 * </p>
 *
 * @author liuz
 * @since 2020-07-27
 */
@ApiModel(value="FreightTemplate对象", description="运费模板表")
public class FreightTemplateVO extends AbstractObject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "运费模板ID")
    private Long id;

    @ApiModelProperty(value = "运费规则,0按照数量,1按照重量")
    private Integer rule;

    @ApiModelProperty(value = "模板名称")
    @Length(min = 1, max = 30, message = "模板名称长度至少{min}个字符，最长{max}个字符")
    private String templateName;

    @ApiModelProperty(value = "添加人")
    private String creater;

    @ApiModelProperty(value = "添加时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "配送地区信息")
    List<FreightTemplateExtendVO> freightTemplateExtendVO;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public List<FreightTemplateExtendVO> getFreightTemplateExtendVO() {
        return freightTemplateExtendVO;
    }

    public void setFreightTemplateExtendVO(List<FreightTemplateExtendVO> freightTemplateExtendVO) {
        this.freightTemplateExtendVO = freightTemplateExtendVO;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getRule() {
        return rule;
    }

    public void setRule(Integer rule) {
        this.rule = rule;
    }
}
